package cn.clx.ymcc.feign;

import cn.clx.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-media",fallbackFactory = MediaFeignBallbackFactory.class)
public interface IMediaFeignClient {

    @RequestMapping(value="/mediaFile/searchMediaFiles/{courseId}",method= RequestMethod.GET)
    public JSONResult searchMediaFiles(@PathVariable("courseId") Long id);
}
